package com.beself.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * author:徐明
 * date：2019/10/13 22:11
 * description:一开始默认就有的数据
 */
public class DTasks {

//    默认任务id
    private Integer tId;
//    任务名称
    private String tName;
//    任务持续时间
    private Integer tTimespan;
//    日期
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date tDate;
//    图片
    private String icon;
//    任务内容
    private String detail;
    //    空余数据
    private String data1;

    private String data2;

    public DTasks() {
    }

    public DTasks(Integer tId, String tName, Integer tTimespan, Date tDate, String icon, String detail, String data1, String data2) {
        this.tId = tId;
        this.tName = tName;
        this.tTimespan = tTimespan;
        this.tDate = tDate;
        this.icon = icon;
        this.detail = detail;
        this.data1 = data1;
        this.data2 = data2;
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public Integer gettTimespan() {
        return tTimespan;
    }

    public void settTimespan(Integer tTimespan) {
        this.tTimespan = tTimespan;
    }

    public Date gettDate() {
        return tDate;
    }

    public void settDate(Date tDate) {
        this.tDate = tDate;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getData1() {
        return data1;
    }

    public void setData1(String data1) {
        this.data1 = data1;
    }

    public String getData2() {
        return data2;
    }

    public void setData2(String data2) {
        this.data2 = data2;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public String toString() {
        return "DTasks{" +
                "tId=" + tId +
                ", tName='" + tName + '\'' +
                ", tTimespan=" + tTimespan +
                ", tDate=" + tDate +
                ", icon='" + icon + '\'' +
                ", detail='" + detail + '\'' +
                ", data1='" + data1 + '\'' +
                ", data2='" + data2 + '\'' +
                '}';
    }
}

